package com.example.studyllm.entity.rag;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import com.example.studyllm.entity.BaseEntity;
import java.io.Serializable;

/**
 * <p>
 *  实体表
 * </p>
 *
 * @author kw
 * @since 2025-02-05 15:12:50.622740
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rag_message")
public class RagMessage extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    
    
    /**
    *   
    */ 
    private Long userId;
    
    
    /**
    *   聊天id（每个会话一个id）
    */ 
    private Long chatId;
    
    
    /**
    *   用户名
    */ 
    private String userName;
    
    
    /**
    *   会话内容
    */ 
    private String message;
    
    
    /**
    *   知识库id
    */ 
    private Long knowledgeId;
    
    
    /**
    *   模型id
    */ 
    private Long modelId;
    
    
    /**
    *   消耗的token数
    */ 
    private Integer tokens;
    
    
    /**
    *   请求token数
    */ 
    private Integer promoteTokens;
    
    
    
    
    
    
    



}